﻿<Window x:Class="SymbolIntegration.ui.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MainWindow" Height="373.684" Width="948.399">
    <Window.Resources>
        <Style x:Key="Text" TargetType="TextBox">
            <Setter Property="FontSize" Value="26"/>
            <Setter Property="HorizontalContentAlignment" Value="Center"/>
            <Setter Property="VerticalContentAlignment" Value="Center"/>
        </Style>
    </Window.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="*"/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
        <TabControl>
            <TabItem Header="Спрощення">
                <Grid Background="#FFE5E5E5">
                    <Grid.RowDefinitions>
                        <RowDefinition Height="1*"/>
                        <RowDefinition Height="1*"/>
                    </Grid.RowDefinitions>
                    <TextBox Style="{StaticResource Text}" x:Name="NormalExpressionTextBox" VerticalAlignment="Top" Height="39" MinHeight="40" Margin="49,45,60,0"/>
                    <TextBox Style="{StaticResource Text}" x:Name="NormalResultTextBox" VerticalAlignment="Top" Height="44" MinHeight="40" Margin="49,58.138,60.399,0" Grid.Row="1"/>
                    <Button HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Content="Спростити" Click="ButtonBaseNorm_OnClick" HorizontalAlignment="Center" Margin="0,110,0,0" Width="81" Height="22" VerticalAlignment="Top"/>

                </Grid>
            </TabItem>
            <TabItem Header="Невизначений інтеграл">
                <Grid Background="#FFE5E5E5">
                    <Grid.RowDefinitions>
                        <RowDefinition Height="3*"/>
                        <RowDefinition Height="1*"/>
                    </Grid.RowDefinitions>
                    <Image Stretch="Uniform" HorizontalAlignment="Left" Source="images.png" Width="30" Margin="0,0,0,0"></Image>
                    <TextBox Style="{StaticResource Text}" Name="IntgrExpressionTextBox" Height="45" Margin="33,0,63,0" />
                    <TextBlock  VerticalAlignment="Center" Margin="0,0,42,0" HorizontalAlignment="Right" FontSize="30">d</TextBlock>
                    <TextBox Style="{StaticResource Text}" Name="IntgrVarTextBox"  HorizontalAlignment="Right" Width="40" Height="45"/>
                    <TextBox Style="{StaticResource Text}" Name="IntgrResultTextBox" Grid.Row="1" MinHeight="45" MaxHeight="50"/>
                    <Button Content="Інтегрувати" Click="ButtonBase_OnClick" HorizontalAlignment="Center" Margin="0,0,0,40" VerticalAlignment="Bottom" Width="75"/>
                </Grid>
            </TabItem>
            <TabItem Header="Диференціювання">
                <Grid Background="#FFE5E5E5">
                    <Grid.RowDefinitions>
                        <RowDefinition Height="3*"/>
                        <RowDefinition Height="1*"/>
                    </Grid.RowDefinitions>
                    <Button HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Content="Диференціювати" Click="ButtonBase2_OnClick" HorizontalAlignment="Center" Margin="428,172,390.399,39.793" Width="112"/>
                    <TextBlock HorizontalAlignment="Left" VerticalAlignment="Center"  Width="49" FontSize="30" Margin="0,98"><Run Text="d/d"/></TextBlock>
                    <TextBox Style="{StaticResource Text}" x:Name="DiffVarTextBox" HorizontalAlignment="Left" VerticalAlignment="Top" Width="40" Height="46" Margin="49,94,0,0"/>
                    <TextBox Style="{StaticResource Text}" x:Name="DiffExpressionTextBox" VerticalAlignment="Top" Height="45" MinHeight="45" Margin="109,94,0.399,0"/>
                    <TextBox Style="{StaticResource Text}" x:Name="DiffResultTextBox" Grid.Row="1" MinHeight="45"  MaxHeight="50" Grid.ColumnSpan="3"/>
                </Grid>
            </TabItem>
            <TabItem Header="N-кратний інтеграл">
                <Grid Background="#FFE5E5E5">
                    <Grid.RowDefinitions>
                        <RowDefinition Height="3*"/>
                        <RowDefinition Height="1*"/>
                    </Grid.RowDefinitions>
                    <Image Stretch="Uniform" HorizontalAlignment="Left" Source="images.png" Width="30" Margin="0,0,0,0"></Image>
                    <TextBox Style="{StaticResource Text}" Name="MulIntgrExpressionTextBox" Height="45" Margin="227,94,63.399,0" VerticalAlignment="Top" />
                    <TextBlock  VerticalAlignment="Top" Margin="0,97,42.399,0" HorizontalAlignment="Right" FontSize="30">d</TextBlock>
                    <TextBox Style="{StaticResource Text}" Name="MulIntgrVarTextBox"  HorizontalAlignment="Right" Width="40" Height="45" Margin="0,94,0.399,0" VerticalAlignment="Top"/>
                    <TextBox Style="{StaticResource Text}" Name="MulIntgrResultTextBox" Grid.Row="1" MinHeight="45" MaxHeight="50" />
                    <Button Content="Інтегрувати" Click="MulButtonBase_OnClick" HorizontalAlignment="Center" Margin="0,172,0,0" Width="86" Height="31" VerticalAlignment="Top"/>
                    <TextBlock Margin="28,97,0,96.793" FontSize="30" HorizontalAlignment="Left" Width="17"><Run Text="d"/></TextBlock>
                    <TextBox Style="{StaticResource Text}" x:Name="MulIntgrVarYTextBox" Height="45" Margin="46,94,0,94.793" HorizontalAlignment="Left" Width="40"/>
                    <Image Stretch="Uniform" HorizontalAlignment="Left" Source="images.png" Width="30" Margin="86,0,0,0"/>
                    <TextBlock Margin="125,99,0,94.793" FontSize="30" HorizontalAlignment="Left" Width="17"><Run Text="d"/></TextBlock>
                    <TextBox Style="{StaticResource Text}" x:Name="MulIntgrVarXTextBox" Height="45" Margin="147,94,0,94.793" HorizontalAlignment="Left" Width="40"/>
                    <Image Stretch="Uniform" HorizontalAlignment="Left" Source="images.png" Width="30" Margin="192,0,0,0"/>
                    <TextBox Style="{StaticResource Text}" x:Name="MulIntgrZUpBoundTextBox"  HorizontalAlignment="Left" Width="90" Height="45" Margin="10,44,0,0" VerticalAlignment="Top"/>
                    <TextBox Style="{StaticResource Text}" x:Name="MulIntgrZDownBoundTextBox" Height="45" Margin="10,149,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" Width="90"/>
                    <TextBox Style="{StaticResource Text}" x:Name="MulIntgrYDownBoundTextBox" Height="45" Margin="111,149,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" Width="96"/>
                    <TextBox Style="{StaticResource Text}" x:Name="MulIntgrYUpBoundTextBox" Height="45" Margin="116,44,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" Width="91"/>
                    <TextBox Style="{StaticResource Text}" x:Name="MulIntgrXUpBoundTextBox"  HorizontalAlignment="Left" Width="84" Height="45" Margin="222,44,0,0" VerticalAlignment="Top"/>
                    <TextBox Style="{StaticResource Text}" x:Name="MulIntgrXDownBoundTextBox" Margin="222,149,0,0" HorizontalAlignment="Left" Width="84" Height="45" VerticalAlignment="Top"/>
                </Grid>
            </TabItem>
            <TabItem Header="Диференціювання за напрямом">
                <Grid Background="#FFE5E5E5">
                    <Grid.RowDefinitions>
                        <RowDefinition Height="3*"/>
                        <RowDefinition Height="1*"/>
                    </Grid.RowDefinitions>
                    <TextBlock HorizontalAlignment="Left" VerticalAlignment="Top"  Width="49" FontSize="30" Margin="0,97,0,0"><Run Text="d/d"/></TextBlock>
                    <TextBox Style="{StaticResource Text}" x:Name="XText" HorizontalAlignment="Left" VerticalAlignment="Top" Width="40" Height="46" Margin="49,94,0,0"/>
                    <TextBox Style="{StaticResource Text}" x:Name="DiffDirectExpressionTextBox" VerticalAlignment="Top" Height="44" Margin="224,95,0.399,0"/>
                    <TextBox Style="{StaticResource Text}" x:Name="XVectorText" HorizontalAlignment="Left" VerticalAlignment="Top" Width="40" Height="46" Margin="49,25,0,0"/>
                    <TextBox Style="{StaticResource Text}" x:Name="YVectorText" VerticalAlignment="Top" Height="46" Margin="105,25,0,0" HorizontalAlignment="Left" Width="40"/>
                    <TextBox Style="{StaticResource Text}" x:Name="ZVectorText" VerticalAlignment="Top" Height="46" Margin="160,25,0,0" HorizontalAlignment="Left" Width="40"/>
                    <TextBox Style="{StaticResource Text}" x:Name="YText" HorizontalAlignment="Left" VerticalAlignment="Top" Width="40" Height="46" Margin="105,94,0,0"/>
                    <TextBox Style="{StaticResource Text}" x:Name="ZText" HorizontalAlignment="Left" VerticalAlignment="Top" Width="40" Height="46" Margin="160,94,0,0"/>
                    <Button HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Content="Диференціювати" Click="DiffDirection_OnClick" HorizontalAlignment="Center" Margin="0,158,0,0" Width="111" Height="29" VerticalAlignment="Top"/>
                    <TextBlock HorizontalAlignment="Left" VerticalAlignment="Top"  Width="16" FontSize="30" Margin="28,25,0,0" Text="("/>
                    <TextBlock HorizontalAlignment="Left" VerticalAlignment="Top"  Width="16" FontSize="30" Margin="215,25,0,0" Text=")"/>
                    <TextBlock HorizontalAlignment="Left" VerticalAlignment="Top"  Width="16" FontSize="30" Margin="89,25,0,0" Text=" ,"/>
                    <TextBlock HorizontalAlignment="Left" VerticalAlignment="Top"  Width="16" FontSize="30" Margin="145,25,0,0" Text=" ,"/>
                    <TextBox Grid.Row="1" Style="{StaticResource Text}" x:Name="DiffDirectionResultTextBox" MinHeight="45"  MaxHeight="50" Margin="0,10,0,0"/>

                </Grid>
            </TabItem>

        </TabControl>
        <TextBlock Grid.Row="1" Visibility="Collapsed" Height="40" TextAlignment="Center" Name="StatusTextBlock" Background="GreenYellow"/>
    </Grid>
</Window>
